package com.xzx.annotation.aop;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author xinzhixuan
 * @version 1.0
 * @date 2025/4/21 16:59
 */
@Slf4j
public class AopMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AopConfig.class);
        MathCalculate calculate = context.getBean(MathCalculate.class);
        int result = calculate.div(1, 1);
        log.info("result = {}", result);

    }
}
